package com.caifu.neums;

/**
 * ClassName :CostTypeEnum
 *
 * @author :  yb
 * @description ：
 * @date : 2020-08-27 15:24
 */
public enum CostTypeEnum {

    /**
     *  费用类别 101:床位费 102护理费 103 长护险费 104：伙食费
     */
    CWF("101", "床位费")
    ,HLF("102", "护理费")
    ,CHXF("103", "长护险费")
    ,HSF("104", "伙食费")
    ;

    private String key;
    private String value;
    CostTypeEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getName(String key) {
        for (CostTypeEnum c : CostTypeEnum.values()) {
            if (c.getKey().equals(key)) {
                return c.value;
            }
        }
        return "";
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
